<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%@page import="java.util.*, model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

			<%
				Applicant applicant = (Applicant)session.getAttribute("applicant");
				Vector disciplinesVector = (Vector)session.getAttribute("disciplinesVector");
				Vector degreesVector = (Vector)session.getAttribute("degreeVector");
				String degreesString = Database.printDegrees(degreesVector);
				
				String university = (String)request.getParameter("university");
				Degree degree = (Degree)session.getAttribute("degree");
				degree.setUniversity(university);
				session.setAttribute("degree", degree);
			%>
				
			<%="Name: " + applicant.getName() %><br />
			<%="Country of Citizenship: " + applicant.getCitizenship() %> <br />
			<%="Country of Residence: " + applicant.getCountry_of_residence() %><br/>
			<%if(applicant.isDomestic()){ %>
			<%="Address: " + applicant.getAddressDomestic() %><br/>
			<%}else{%>
			<%="Address: " + applicant.getAddressForeign() %><br/>
			<%} %>
			<%= applicant.getDomestic() %><br /><br />

			<!-- Print Degrees -->
			<% out.println("<strong> Current Degree </strong> "); %> <br />
			<%= "Degree-Country: " + degree.getCountry() %><br/>
			<%if(degree.hasState())
				out.println("Degree-State: " + degree.getState());
			%>
			<br/>
			<%= "Degree-University: " + degree.getUniversity() %><br/>
					
			<hr /><br />Please Choose Your Major / Specialization<br /><br />
			
			<html:form action="/disciplineSubmit" >
				<%
				int count = disciplinesVector.size();
				for(int i=0; i< count; i++) {%>
					<html:radio property="major" value="<%= (String)disciplinesVector.get(i) %>"><%= disciplinesVector.get(i) %></html:radio><br>
				<%} %>
				
				<br />
				
				Other discipline: <html:text property="major" /><br>
				Title of Degree
				<html:select property="title_degree">
					<html:option value="Bs">Bs</html:option>
					<html:option value="Ms">Ms</html:option>
					<html:option value="PhD">PhD<</html:option>
				</html:select>	
				<br />
		    	Date Degree Awarded / Expected (mm/yy): <html:text property="date" /> 
		    	<br />
		    	GPA: <html:text property="gpa" /> <br />
		    	Transcript PDF: <html:text property="transcript" />
		    	<br />
		    	<br />
				<html:submit/>
			</html:form>
			<br />

</body>
</html:html>